﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TianShiProject.Migrations
{
    public partial class tianshen11 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
           

            migrationBuilder.CreateTable(
                name: "GeneralContractShen",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    GeneralContractNos = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Thecontracttitles = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheOtherUnits = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheOtherPartyHead = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractCategory = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractAmounts = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Agents = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    SignedTimes = table.Column<DateTime>(type: "datetime2", nullable: false),
                    TheContractAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ProjectDescriptios = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ThisMainClauses = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractTexts = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractStatess = table.Column<int>(type: "int", nullable: false),
                    TheApprovers = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsDelete = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_GeneralContractShen", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "TransportContractShen",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    TheCarContractNOc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheContractTitlec = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheCarrierUnitc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheCarrierHeadc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Linec = table.Column<int>(type: "int", nullable: false),
                    TonsOfFreightc = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ConditionTonnagec = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    CharterValuec = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Agentc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    SignedTimec = table.Column<DateTime>(type: "datetime2", nullable: false),
                    TheContractAmountc = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ProjectDescriptioc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ChangeTheTermsc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractTheTextc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractStatesc = table.Column<int>(type: "int", nullable: false),
                    TheApproverc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsDelete = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TransportContractShen", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            

            migrationBuilder.CreateTable(
                name: "GeneralContract",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Agents = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractAmounts = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ContractCategory = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractStatess = table.Column<int>(type: "int", nullable: false),
                    ContractTexts = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    GeneralContractNos = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsDelete = table.Column<int>(type: "int", nullable: false),
                    ProjectDescriptios = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    SignedTimes = table.Column<DateTime>(type: "datetime2", nullable: false),
                    TheApprovers = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheContractAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    TheOtherPartyHead = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheOtherUnits = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Thecontracttitles = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ThisMainClauses = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_GeneralContract", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "TransportContract",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Agentc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ChangeTheTermsc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CharterValuec = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ConditionTonnagec = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ContractStatesc = table.Column<int>(type: "int", nullable: false),
                    ContractTheTextc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsDelete = table.Column<int>(type: "int", nullable: false),
                    Linec = table.Column<int>(type: "int", nullable: false),
                    ProjectDescriptioc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    SignedTimec = table.Column<DateTime>(type: "datetime2", nullable: false),
                    TheApproverc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheCarContractNOc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheCarrierHeadc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheCarrierUnitc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TheContractAmountc = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    TheContractTitlec = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    TonsOfFreightc = table.Column<decimal>(type: "decimal(18,2)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TransportContract", x => x.Id);
                });
        }
    }
}
